home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7626 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  33 lines

  1. Newsgroups: comp.lang.c
  2. Path: uu4news.netcom.com!zodiac!szh
  3. From: szh@zcon.com (Syed Zaeem Hosain)
  4. Subject: Re: need for function prototypes
  5. Message-ID: <1996Feb27.192312.22951@zcon.com>
  6. Sender: szh@zcon.com (Syed Zaeem Hosain)
  7. Nntp-Posting-Host: zodiac
  8. Reply-To: szh@zcon.com
  9. Organization: Z Consulting Group
  10. References: <4gutho$o1a@mn5.swip.net>
  11. Date: Tue, 27 Feb 1996 19:23:12 GMT
  12.  
  13. In article <4gutho$o1a@mn5.swip.net>, chris.rossall@mailbox.swipnet.se (Chris Rossall) writes:
  14. >Hello I am having trouble understanding why I should use function
  15. >prototypes. I mean,if the function is defined before it is used,the
  16. >compiler should have enough information about the parameters to
  17. >produce correct code anyway.
  18.  
  19. Yes. In *that* situation, prototypes are not needed. But have you ever
  20. written large enough programs where it is more convenient to keep the
  21. functions in separate modules (like files)? How would you deal with
  22. those situations? When you answer this for yourself, you will then
  23. understand the need for prototypes.
  24.  
  25.                                 Z
  26.  
  27.  
  28. -- 
  29. -------------------------------------------------------------------------
  30. | Syed Zaeem Hosain          P. O. Box 610097            (408) 441-7021 |
  31. | Z Consulting Group        San Jose, CA 95161             szh@zcon.com |
  32. -------------------------------------------------------------------------
  33.